package com.apes.fn.scm.crossCompany.transfer.repository;

import com.apes.fn.scm.crossCompany.transfer.model.CrossCompanyLocation;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * 跨公司交易配置
 */
public interface CrossCompanyLocationRepository extends CustomRepository<CrossCompanyLocation, String> {

    @Query("select T from CrossCompanyLocation T where T.company.id = :companyId")
    CrossCompanyLocation findByCrossCompanyId(@Param("companyId") String companyId);
}
